﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Se.Framework.Common
{
    public interface ICacheSvc
    {
        void Add<T>(string key, T obj);
        void Add<T>(string key, T obj, int minutes);
        void AddMany<T>(Dictionary<string, object> data);
        void AddMany<T>(Dictionary<string, object> data, int minutes);
        T Get<T>(string key);
        IDictionary<string, T> GetMany<T>(ref List<string> keys);
        void Remove<T>(string key);
        void RemoveMany<T>(List<string> keys);
    }
}
